<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="description" content="">
<title>签到赚积分</title>
<link href="{lanrain::RES}/css/guajiang/css/activity-style.css" rel="stylesheet" type="text/css">
<style type="text/css">
#txt {
  color: #000000;
}
.footFix{width:100%;text-align:center;position:fixed;left:0;bottom:0;z-index:99;}
#footReturn a, #footReturn2 a {
display: block;
line-height: 41px;
color: #fff;
text-shadow: 1px 1px #282828;
font-size: 14px;
font-weight: bold;
}
#footReturn, #footReturn2 {
z-index: 89;
display: inline-block;
text-align: center;
text-decoration: none;
vertical-align: middle;
cursor: pointer;
width: 100%;
outline: 0 none;
overflow: visible;
Unknown property name.-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
height: 41px;
opacity: .95;
border-top: 1px solid #181818;
box-shadow: inset 0 1px 2px #b6b6b6;
background-color: #515151;
Invalid property value.background-image: -ms-linear-gradient(top,#838383,#202020);
background-image: -webkit-linear-gradient(top,#838383,#202020);
Invalid property value.background-image: -moz-linear-gradient(top,#838383,#202020);
Invalid property value.background-image: -o-linear-gradient(top,#838383,#202020);
background-image: -webkit-gradient(linear,0% 0,0% 100%,from(#838383),to(#202020));
Invalid property value.filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#838383',endColorstr='#202020');
Unknown property name.-ms-filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#838383',endColorstr='#202020');
}
.thistr{
  background-color: #EEE;
}
</style>
</head> 

<body data-role="page" >

<script type="text/javascript" src="{lanrain::RES}/css/guajiang/js/jquery.js"></script> 
<script type="text/javascript">window.jQuery || document.write('<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">\x3C/script>')</script>

<div class="main">
<div class="cover">
 <if condition="$cardset['qiandao'] neq false">
   <img src="{lanrain::$cardset['qiandao']}">
 <else/>
   <img src="{lanrain::RES}/images/cart_info/qiandao.jpg">
 </if>

</div>
<div class="cover">
  <if condition="$signined eq 1">
    <img src="{lanrain::RES}/images/cart_info/qiandaook.png">
  <else/>
 <form action="" method="post" accept-charset="utf-8">   
     <input class="pxbtn" name="sign-btn"  id="sign-btn" type="submit" value="点击这里签到赚积分">
 </form> 
  </if>
 
</div>
<div class="content"> 
  <div class="boxcontent boxwhite">
    <div class="box">
      <table border="0"  align="center" cellSpacing="0" cellPadding="0" width="100%" >
        <thead >
          <tr align="middle" class="thistr">
            <th><strong>总积分</strong></th>
            <th><strong>签到积分</strong></th>
            <th><strong>消费积分</strong></th>
          </tr>
        </thead>
        <tbody>
          <tr align="middle">
            <td>{lanrain:$userinfo['total_score']}</td>
            <td>{lanrain:$userinfo['sign_score']}</td>
            <td>{lanrain:$userinfo['expend_score']}</td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
  <div class="boxcontent boxwhite">
    <div class="box">
      <div class="day-brown">连续签到<font color='red'>{lanrain:$userinfo['continuous']}</font>天,连续签到<strong>6</strong>天奖励<strong>{lanrain::$cardset['continuation']}</strong>积分.</div>
      <div class="Detail">
        <table border="0" cellSpacing="0" cellPadding="0" width="100%"  align="center" >
        <thead >
          <tr align="middle" class="thistr">
            <th><strong>签到日期</strong></th>
            <th><strong>签到情况</strong></th>
            <th><strong>积分</strong></th>
          </tr>
        </thead>
        <tbody>
          <volist name="sign" id="list"> 
            <tr align="middle">
              <td><if condition="$list.sign_time neq false">{lanrain:$list.sign_time|date="Y-m-d",###}<else/>无</if></td>
              <td><if condition="$list.is_sign eq 1"><img src="{lanrain::RES}/images/cart_info/signed.png"><else/>未签</if></td>
              <td>{lanrain:$list.expense}</td>
            </tr>
          </volist>
        </tbody>
      </table>      
              
      </div>
    </div>
  </div>
</div>
<div style="clear:both;"></div>
</div>  

<div style="height:20px;"></div>
<div class="footFix" id="footReturn"><a href="javascript:void(0)" onClick="location.href='{lanrain::U('Wap/Index/index',array('token'=>$_GET['token'],'wecha_id'=>$_GET['wecha_id']))}';"><span>返回3G网站</span></a></div>
<script src="{lanrain::RES}/css/guajiang/js/alert.js" type="text/javascript"></script>
<style type="text/css">
.window {
  width:290px;
  position:absolute;
  display:none;
  bottom:30px;
  left:50%;
   z-index:9999;
  margin:-50px auto 0 -145px;
  padding:2px;
  border-radius:0.6em;
  -webkit-border-radius:0.6em;
  -moz-border-radius:0.6em;
  background-color: #ffffff;
  -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  -o-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  font:14px/1.5 Microsoft YaHei,Helvitica,Verdana,Arial,san-serif;
}
.window .title {
  
  background-color: #A3A2A1;
  line-height: 26px;
    padding: 5px 5px 5px 10px;
  color:#ffffff;
  font-size:16px;
  border-radius:0.5em 0.5em 0 0;
  -webkit-border-radius:0.5em 0.5em 0 0;
  -moz-border-radius:0.5em 0.5em 0 0;
  background-image: -webkit-gradient(linear, left top, left bottom, from( #585858 ), to( #565656 )); /* Saf4+, Chrome */
  background-image: -webkit-linear-gradient(#585858, #565656); /* Chrome 10+, Saf5.1+ */
  background-image:    -moz-linear-gradient(#585858, #565656); /* FF3.6 */
  background-image:     -ms-linear-gradient(#585858, #565656); /* IE10 */
  background-image:      -o-linear-gradient(#585858, #565656); /* Opera 11.10+ */
  background-image:         linear-gradient(#585858, #565656);
  
}
.window .content {
  /*min-height:100px;*/
  overflow:auto;
  padding:10px;
  background: linear-gradient(#FBFBFB, #EEEEEE) repeat scroll 0 0 #FFF9DF;
    color: #222222;
    text-shadow: 0 1px 0 #FFFFFF;
  border-radius: 0 0 0.6em 0.6em;
  -webkit-border-radius: 0 0 0.6em 0.6em;
  -moz-border-radius: 0 0 0.6em 0.6em;
}
.window #txt {
  min-height:30px;font-size:16px; line-height:22px;
}
.window .txtbtn {
  
  background: #f1f1f1;
  background-image: -webkit-gradient(linear, left top, left bottom, from( #DCDCDC ), to( #f1f1f1 )); /* Saf4+, Chrome */
  background-image: -webkit-linear-gradient( #ffffff , #DCDCDC ); /* Chrome 10+, Saf5.1+ */
  background-image:    -moz-linear-gradient( #ffffff , #DCDCDC ); /* FF3.6 */
  background-image:     -ms-linear-gradient( #ffffff , #DCDCDC ); /* IE10 */
  background-image:      -o-linear-gradient( #ffffff , #DCDCDC ); /* Opera 11.10+ */
  background-image:         linear-gradient( #ffffff , #DCDCDC );
  border: 1px solid #CCCCCC;
  border-bottom: 1px solid #B4B4B4;
  color: #555555;
  font-weight: bold;
  text-shadow: 0 1px 0 #FFFFFF;
  border-radius: 0.6em 0.6em 0.6em 0.6em;
  display: block;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  text-align: windowcenter;
  font-weight: bold;
  font-size: 18px;
  padding:6px;
  margin:10px 0 0 0;
}
.window .txtbtn:visited {
  background-image: -webkit-gradient(linear, left top, left bottom, from( #ffffff ), to( #cccccc )); /* Saf4+, Chrome */
  background-image: -webkit-linear-gradient( #ffffff , #cccccc ); /* Chrome 10+, Saf5.1+ */
  background-image:    -moz-linear-gradient( #ffffff , #cccccc ); /* FF3.6 */
  background-image:     -ms-linear-gradient( #ffffff , #cccccc ); /* IE10 */
  background-image:      -o-linear-gradient( #ffffff , #cccccc ); /* Opera 11.10+ */
  background-image:         linear-gradient( #ffffff , #cccccc );
}
.window .txtbtn:hover {
  background-image: -webkit-gradient(linear, left top, left bottom, from( #ffffff ), to( #cccccc )); /* Saf4+, Chrome */
  background-image: -webkit-linear-gradient( #ffffff , #cccccc ); /* Chrome 10+, Saf5.1+ */
  background-image:    -moz-linear-gradient( #ffffff , #cccccc ); /* FF3.6 */
  background-image:     -ms-linear-gradient( #ffffff , #cccccc ); /* IE10 */
  background-image:      -o-linear-gradient( #ffffff , #cccccc ); /* Opera 11.10+ */
  background-image:         linear-gradient( #ffffff , #cccccc );
}
.window .txtbtn:active {
  background-image: -webkit-gradient(linear, left top, left bottom, from( #cccccc ), to( #ffffff )); /* Saf4+, Chrome */
  background-image: -webkit-linear-gradient( #cccccc , #ffffff ); /* Chrome 10+, Saf5.1+ */
  background-image:    -moz-linear-gradient( #cccccc , #ffffff ); /* FF3.6 */
  background-image:     -ms-linear-gradient( #cccccc , #ffffff ); /* IE10 */
  background-image:      -o-linear-gradient( #cccccc , #ffffff ); /* Opera 11.10+ */
  background-image:         linear-gradient( #cccccc , #ffffff );
  border: 1px solid #C9C9C9;
  border-top: 1px solid #B4B4B4;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) inset;
}

.window .title .close {
  float:right;
  background-image: url("");
  width:26px;
  height:26px;
  display:block;  
}
</style>
<div class="window" id="windowcenter">
  <div id="title" class="title">消息提醒<span class="close" id="alertclose"></span></div>
  <div class="content">
   <div id="txt"></div>
   <input type="button" value="确定" id="windowclosebutton" name="确定" class="txtbtn"> 
  </div>
</div>
 
 

<script type="text/javascript">

$("#sign-btn").bind("click",
  function() {
   var  token ="{lanrain:$Think.get.token}";
   var wecha_id ="{lanrain:$Think.get.wecha_id}";    
   var btn   = $(this);    
   

    var submitData = { 
      token   : token,
      wecha_id : wecha_id,     
      action  : "signin"
    };
    $.post('index.php?g=Wap&m=Signscore&a=signin&token={lanrain:$Think.get.token}&wecha_id={lanrain:$Think.get.wecha_id}', submitData,
      function(data) {
        if (data.success == true) {
          alert(data.msg);
          $("#zjl").hide("slow");
          return
        } else { 
          alert('失败'+data);
          return
        }
      },"json")
    
});

</script>
</body></html>